﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="gglist.aspx.cs" Inherits="GPCSC.Web.sjsbyes.gglist" %>

<%@ Register Assembly="NickLee.Web.UI" Namespace="NickLee.Web.UI" TagPrefix="NickLee" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>淮安市领导干部下基层活动网站</title>
    <meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <link type="text/css" rel="Stylesheet" href="../Css/GridCss.css" />
    <link type="text/css" rel="Stylesheet" href="../Css/selectCss.css" />
    <link href="../Css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/FYJScript.js"></script>
    <script>
        function chaNumber(type, number, cl_post_soid) {

            var type = type;

            var number = number;
            var cl_post_soid = cl_post_soid;
            if (type == "3") {
                if (confirm("您确定要删除吗？")) {
                    LCallBack.Callback(type, number, cl_post_soid);
                    alert("删除成功！");
                }
            }
            else {
                LCallBack.Callback(type, number, cl_post_soid);
            }

        }
        function openNewWindow(url, primarykey) {
            url = url + "&CommandArg=" + primarykey;
            window.location.href = url;

        }

        function zuoFei(type, number, cl_post_soid) {

            var type = type;

            var number = number;
            var cl_post_soid = cl_post_soid;
            if (type == "4") {
                if (confirm("您确定要作废吗？")) {
                    LCallBack.Callback(type, number, cl_post_soid);
                    alert("成功作废！");
                }
            }
            else {
                LCallBack.Callback(type, number, cl_post_soid);
            }

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <!--导航-->
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="29" background="../images/1.gif">
                    <table width="300" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="300" class="tittle">
                                当前位置：挂钩列表
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div class="selects">
            <table>
                <tr>
                    <td>
                        领导人关键字：
                    </td>
                    <td>
                        <input type="text" id="like" />
                    </td>
                    <td>
                        <%--selectsbutton--%>
                        <input type="button" class="buttonCss" value="搜索" onclick="  var like = document.getElementById('like').value; 
LCallBack.Callback('2', '', like);" />
                    </td>
                    <td>
                        <input type="button" class="buttonCss" value="新增" onclick="window.location.href='ggEdit.aspx?Command=new';" />
                    </td>
                </tr>
            </table>
        </div>
        <NickLee:CallBack runat="server" ID="LCallBack" OnCallback="LCallBack_Callback" PostState="True"
            Width="100%" Height="100%" LoadingPanelFadeDuration="800" LoadingPanelFadeMaximumOpacity="80">
            <Content>
                <asp:Panel ID="LPanel" runat="server">
                    <asp:Label ID="lblProcesserMsg" runat="server" CssClass="labelRed" Style="display: none;"></asp:Label>
                    <asp:Label ID="lblCount" runat="server" CssClass="labelBlue" Text=""></asp:Label>
                    <asp:TextBox ID="MtxtD_DeleteList" Style="display: none" runat="server"></asp:TextBox>
                    <asp:HiddenField ID="hfError" runat="server" Value=""></asp:HiddenField>
                    <div id="grid" class="grid">
                        <asp:Repeater ID="PostListS" runat="server">
                            <HeaderTemplate>
                                <table width="100%">
                                    <tr height="26px">
                                        <th>
                                            领导名称
                                        </th>
                                        <th>
                                        领导单位
                                        </th>
                                        <th>
                                            挂钩乡/企/社
                                        </th>
                                        <th>
                                            挂钩乡/企/社负责人
                                        </th>
                                        <th>
                                        是否历史数据
                                        </th>
                                        <th colspan="3">
                                            操作
                                        </th>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <!--不带底色-->
                                <tr>
 
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "lgname")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "lgdw")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "ggname")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "lxname")%>
                                    </td>
                                    <td>
                                        <%# IsZuoFei(DataBinder.Eval(Container.DataItem, "IsZuoFei"))%>
                                    </td>
                                    
                                    <td style="cursor: pointer;" onclick='zuoFei("4","","<%# DataBinder.Eval(Container.DataItem, "ggid")%>");'>
                                        [作废]
                                    </td>
                                    <td style="cursor: pointer;" onclick='openNewWindow("<%# DataBinder.Eval(Container.DataItem, "EditUrl")%>","<%# DataBinder.Eval(Container.DataItem, "ggid")%>");'>
                                        [修改]
                                    </td>
                                    <td style="cursor: pointer;" onclick='chaNumber("3","","<%# DataBinder.Eval(Container.DataItem, "ggid")%>");'>
                                        [删除]
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <!--分页-->
                        <div id="pageinfo" class="pageinfo" runat="server">
                        </div>
                    </div>
                </asp:Panel>
            </Content>
            <ClientEvents>
            </ClientEvents>
            <LoadingPanelClientTemplate>
                <table style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0" border="0"
                    bgcolor="#e0e0e0">
                    <tr style="width: 100%; height: 100%;">
                        <td style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        数据载入中...&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-family: tahoma; font-size: 12px; text-align: center;">
                                        <img alt="" src="../images/GreenBar.gif" border="0" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </LoadingPanelClientTemplate>
        </NickLee:CallBack>
        <!--列表-->
    </div>
    </form>
</body>
</html>
